package com.xiguanlezz.cn.client.codec;

import com.xiguanlezz.cn.common.ResponseMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/10/17 15:14
 * @Description：点餐响应结果打印处理类
 */
public class OrderResponsePrintHandler extends SimpleChannelInboundHandler<ResponseMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, ResponseMessage responseMessage) throws Exception {
        System.out.printf("接收到来自服务端的响应: %s\n", responseMessage.toString());
    }
}
